#include "rename.h"

#ifdef  _WIN32          // windows
#include <cstdio>
#ifdef  _WIN64
    
void rename_file(std::string ori_name, std::string dst_name) {
    rename(ori_name.c_str(), dst_name.c_str());
}

#else

void rename_file(std::string ori_name, std::string dst_name) {
    rename(ori_name.c_str(), dst_name.c_str());
}

#endif
#endif



#ifdef  __linux__       // linux
// #include <sys/stat.h>
// #include <sys/type.h>
#include <cstdio>
void rename_file(std::string ori_name, std::string dst_name) {
    rename(ori_name.c_str(), dst_name.c_str());
}

#endif


#ifdef  __ANDROID__     // android TODO

void rename_file(std::string ori_name, std::string dst_name) {
    ;
}

#endif
